const category: AuthRoute.Route = {
	name: "category", //根据name来提取对应的组件
	path: "/category",
	component: "basic", //basic基本主面板骨架、self渲染自定义组件
	meta: {
		title: "分类管理",
		i18nTitle: "routes.category._value",
		icon: "fluent:book-information-24-regular",
		order: 10,
	},
	children: [
		{
			name: "category_list", //会根据name的格式路径，自动找到目标组件
			path: "/category/list",
			component: "self",
			meta: {
				title: "分类列表",
				i18nTitle: "routes.category.list",
				// requiresAuth: true,
				icon: "mdi:button-cursor",
			},
		},
		{
			name: "category_pub",
			path: "/category/pub", //会根据path路径自动找到目标组件
			component: "self",
			meta: {
				title: "分类发布",
				i18nTitle: "routes.category.pub",
				requiresAuth: true,
				icon: "mdi:button-cursor",
			},
		},
	],
};

export default category;
